<?php
/**
 * Created by PhpStorm.
 * User: kang
 * Date: 2019-09-07
 * Time: 12:16
 */

namespace app\Validate;
use think\Validate;

class Profile extends Validate
{
    protected $rule =   [
        'nickname'      => 'require|max:20',
        'password'    => 'length:6,18|confirm'
    ];

    protected $message  =   [
        'nickname.require' => '请填写姓名',
        'nickname.max'     => '姓名最长不能超过10位',
        'password.length'     => '登录凭证密码长度必须在6~18位之间',
        'password.confirm'  => '两次登录凭证密码输入不一致'
    ];
}